self.addEventListener('message', function(e) {
    console.log("Worker values");
    console.log(navigator.language);
    console.log("Wrkr1 " + navigator.languages.length);
    for(var i = 0; i < navigator.languages.length; i++)
        console.log("Wrkr:lang[" + i + "]-" + navigator.languages[i]);
}, false);